package com.zyong.design.pattern.command.case2;

/**
 * 电灯 接收者
 * @program: zyong-design-pattern
 * @ClassName: ElectricLightReceiver
 * @author: zyong
 * @create: 2024-03-27 00:17
 */
public class ElectricLightReceiver {
    /**
     * 开
     */
    public void on() {
        System.out.println("电灯 开");
    }

    /**
     * 关
     */
    public void off() {
        System.out.println("电灯 关");
    }
}
